<div id="maincontent">
	<div id="content">
      <div class="box1">
        <h1><?php echo lico_lang('general', 'news.page.title'); ?></h1>
    
		<div class="newsContainer" id="NewsOfLiCo">
		  <?php
			$class = "odd";
			$sel = "SELECT * FROM news ORDER BY stamp DESC LIMIT 0,50;";
			$ret = $db->getAll_assoc($sel);
			for ($a=0; $a<count($ret); $a++) {
				if ($class == "odd") $class = "even"; else $class = "odd";
				$id = intval($ret[$a]['id']);
				$subject = trim($ret[$a]['subject']);
				$text = trim($ret[$a]['body']);
				$stamp = intval($ret[$a]['stamp']);

				echo "\n\n\n".'
				<div class="newsItem '.$class.'">
				<a name="'.$id.'"></a><span class="newsDate">'.lico_getdatetime($stamp).'</span><br/>
							<span class="newsSubject"><a href="'.$lico['baseurl.ssl'].'/news.html#'.$id.'">'.$subject.'</a></span><br/>
							<div class="newsText">
								<p>'.$text.'</p>
							</div>
				</div>
				'."\n\n\n";
			}
			?>
		</div>
    </div>
  </div>
</div>
